﻿using System;
using System.Collections.Generic;
using SimpleFS.Core;
using SimpleFS.Core.Implementations;

namespace SimpleFS.Services.Cache
{
    public class File : AbstractFile
    {
        public File(IFile internalObject)
            : base(internalObject)
        {
            this.internalObject = internalObject;
        }

        #region IFile Members

        public System.IO.Stream Read()
        {
            return Cache.GetInstance().GetStream(this.internalObject);
        }

        #endregion
    }
}
